package entity;

import net.chopinlite.*;
import net.chopinlite.mapping.*;

@Table
public class Product extends Entity {
    @Column(notNull = true)
    private String name;
    @Column(notNull = true)
    private double price;
    @Column(bigText = true)//长文本
    private String info;
    @Column(name = "pic_path")
    private String picPath;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }
}
